xi2: Don't reset scroll valuators too often
authorMatthias Clasen <mclasen@redhat.com>
Fri, 9 Mar 2012 03:35:43 +0000 (22:35 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 9 Mar 2012 03:35:43 +0000 (22:35 -0500)
According to XInput gurus, a motion event without valuators
does not invalidate the stored value, so we should keep it.

https://bugzilla.gnome.org/show_bug.cgi?id=671659

gdk/x11/gdkdevicemanager-xi2.c

index 0b9dc19f71d0c7561aa8ae49b5e86bfd18771732..0ae7117dfe5d6816545bddb55df74fddf77518a2 100644 (file)
@@ -1343,8 +1343,6 @@ gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator,
             event->scroll.state = _gdk_x11_device_xi2_translate_state (&xev->mods, &xev->buttons, &xev->group);
             break;
           }
-       else
-          _gdk_device_xi2_reset_scroll_valuators (GDK_X11_DEVICE_XI2 (source_device));
 
         event->motion.type = GDK_MOTION_NOTIFY;
         event->motion.window = window;